<template>
  <div class="appeal-list-content scrollbar">
    <div v-for="(item,index) in props.list" :key="index" class="appeal-item flex-between" @click="goPage(item)">
      <div class="flex">
        <img class="img" src="@/assets/event/icon-zhongdiansuqiu.png" alt="">
        <div class="content">
          <p class="title ellipsis-2">{{item.sjfl}}</p>
          <div class="info flex-start">
            <p>
              <span>反馈人数</span>
              <span class="num">{{item.backPeopleNum}}</span>
            </p>
            <p>
              <span>反馈次数</span>
              <span class="num">{{item.backNum}}</span>
            </p>
          </div>
        </div>
      </div>
      <img class="more" src="@/assets/icon/icon-more.png" alt="">
    </div>
    <van-empty v-if="!list.length" description="暂无重点诉求相关数据" />
  </div>
</template>

<script lang="ts" setup>
import { computed, ref, reactive, toRefs, watch, onActivated, getCurrentInstance } from 'vue'

defineOptions({
  name: 'AppealList'
})

const props = defineProps({
  list: {
    type: Array,
    default: []
  }
})

const emit = defineEmits(['goPage'])

const goPage = (item :Object) => {
  emit("goPage",item)
}
</script>

<script lang="ts">

</script>

<style lang="less" scoped>
.appeal-list-content{
  padding: 11px 12px 120px;
  overflow: auto;
  height: 100vh;
  overflow-y: scroll;
  box-sizing: border-box;
  .appeal-item{
    border-radius: 8px;
    background: #FFFFFF;
    padding: 13px 10px;
    color: #0000007F;
    font-size: 13px;
    margin-bottom: 10px;
    .img{
      width: 30px;
      min-width: 30px;
      height: 30px;
      margin-right: 4px;
    }
    .more{
      width: 12px;
      min-width: 12px;
      height: 24px;
      margin-left: 4px;
    }
    .title{
      color: #0E0D16;
      font-weight: 900;
      font-size: 16px;
      line-height: 20px;
      margin-bottom: 10px;
    }
    .num{
      color: #000;
      margin-left: 5px;
    }
    .info{
      p:nth-child(2){
        border-left: 1px solid #d9d9d9;
        padding-left: 10px;
        margin-left: 10px;
      }
    }
  }
}
</style>
